package org.zjkoye.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zjkoye.crm.common.Result;
import org.zjkoye.crm.entity.Customer;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zjkoye
 * @since 2024-06-23
 */
public interface CustomerService extends IService<Customer> {

    IPage<Customer> pageList(int pageSize, int currentPage, String name);

    Customer findByCustomerName(String loginName);

    Customer getCustomerById(int id);

    List<Customer> getUserList();

    Result<String> add(Customer user);

    boolean updateUser(Customer user);

    boolean deleteById(int id);
}
